main()
//唐子豪
{
    int integer,i,max,min,sum;
    max=-32768;
    min=32767;
    sum=0;
    for(i=1;i<=10;i++){
        printf("input number%d=",i);
        scanf("%d",&integer);
        sum +=integer;
        if(integer>max) max=integer;
        if (integer<min) min=integer;
      
        
        
    }
     printf("Canceled max score:%d\n Canceled min score:%d\n",max,min);
      
    printf("Average score :%d\n",(sum-max-min)/8); 
}